#ifndef BASE_PROXYDETECT_H_
#define BASE_PROXYDETECT_H_

#include "proxyinfo.h"

#ifdef HAVE_CONFIG_H_
#include "config.h"
#endif

namespace base
{
	// Auto-detect the proxy server. Returns true if a proxy is configured,
	// although hostname may be empty if the proxy is not required for the 
	// given URL.
	bool GetProxySettingsForUrl(const char* agent, const char* url, 
		base::ProxyInfo* proxy, bool long_operation = false);
} // namespace base

#endif	// BASE_PROXYDETECT_H_